from django.template import RequestContext
from django.shortcuts import render_to_response
from tjango.faq.models import *

def faq(request):
	list = Question.objects.order_by('section','question')
	questions = []
	for l in list:
		questions.append( {'section': l.section, 
			'question': l.question, 'answer': l.answer})
	return render_to_response('show_faq.html', locals(), context_instance=RequestContext(request))
